<template>
  <div class="basketcolor">
    <addresscheck v-if="$route.name === 'address'"></addresscheck>
  <basketlines v-if="$route.name !== 'address'"></basketlines>
  </div>
</template>

<script>


import { mapState, mapMutations, mapGetters } from "vuex";
import basketlines from "./lines/basketlines";
import addresscheck from "./addressCheck/addresscheck";


export default {
  name: "basket",
  data(){
    return {
      msg:"我是详情",
    }
  },
  created() {

  },
  watch:{

  },
  methods:{
    // ...mapActions("model", []),
    ...mapMutations("login", ["setToken"])
  },
  computed:{
    ...mapGetters("login", []),
    ...mapState("login", ["token"]),
    ...mapState("basket", ["allchecked", "basketlength"])
  },
  components:{
    basketlines,
    addresscheck

  }
}
</script>

<style scoped lang="less">


</style>